package com.yisu.expressway.main_page.model;

import com.yisu.expressway.R;

/**
 * Created by Administrator on 2016/12/13 0013.
 */

public class ModuleItem {
    private int img_Id;//主页模块图片id
    private int string_Id;//字串id
    private ModuleID category_Id;//模块id

    public ModuleItem(ModuleID moduleID){
        this.category_Id = moduleID;
        switch (moduleID){
            case HIGHWAY_CONDITION:
                string_Id = R.string.highway_condition;
                img_Id = R.drawable.ic_module_highway_condition;
                break;
            case GAS_PAY:
                string_Id = R.string.pay_gas;
                img_Id = R.drawable.ic_module_pay_gas;
                break;
            case DRIVER_TIP_OFF:
                string_Id = R.string.driver_tip_off;
                img_Id = R.drawable.ic_module_driver_tip_off;
                break;
            case SERVICE_DISTRICT:
                string_Id = R.string.service_district;
                img_Id = R.drawable.ic_module_service_district;
                break;
            case SCAN_CODE:
                string_Id = R.string.scan_code;
                img_Id = R.drawable.ic_module_scan;
                break;
            case QR_CODE:
                string_Id = R.string.qr_code;
                img_Id = R.drawable.ic_module_code;
                break;
            case BIND_ETC:
                string_Id = R.string.bind_etc_card;
                img_Id = R.drawable.ic_module_etc;
                break;
            case TRADE_RECORD:
                string_Id = R.string.trade_record;
                img_Id = R.drawable.ic_module_trade_record;
                break;
            case SHOPPING_MALL:
                string_Id = R.string.shopping_mall;
                img_Id = R.drawable.ic_module_shopping_mall;
                break;
            case ONE_DOLLER:
                string_Id = R.string.one_dollar;
                img_Id = R.drawable.ic_module_onedoller;
                break;
            case CAR_ILLEGAL_QUERY:
                string_Id = R.string.query_violation;
                img_Id = R.drawable.ic_module_search_illegal;
                break;
            case NEED_HELP:
                string_Id = R.string.press_for_sos;
                img_Id = R.drawable.ic_module_sos;
                break;
            case NEARBY_GAS_STATION:
                string_Id = R.string.find_gas_station;
                img_Id = R.drawable.ic_module_gas_station;
                break;
            case MODULE_AR:
                string_Id = R.string.vr_function;
                img_Id = R.drawable.ic_module_vr;
                break;
            case MORE_CONTACT_NUMBER:
                string_Id = R.string.more_contact;
                img_Id = R.drawable.ic_module_contact;
                break;
            case VOICE_ASSISTANT:
                string_Id = R.string.module_custom_service;
                img_Id = R.drawable.ic_module_custom_service;
                break;
            default:
                string_Id = -1;
                img_Id = -1;
                break;
        }
    }

    public int get_img_Id(){
        return img_Id;
    }

    public int getString_Id(){
        return string_Id;
    }

    public ModuleID getCategory_Id(){
        return category_Id;
    }
}
